package com.imooc.miaosha.util;

import org.joda.time.DateTime;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.TimeUnit;

public class TimeUtil{
    public static final String DATE_FORMAT="yyyy/MM/dd HH:mm";
    public static String formatDate(Date date){
        SimpleDateFormat simpleDateFormat=new SimpleDateFormat(DATE_FORMAT);
        return simpleDateFormat.format(date);
    }

    public static void main(String[] args) {
        DateTime dateTime=new DateTime();

    }
}
